import request from '@/utils/request'
import { faceApiUrl } from '../config'

// 商务总包确认归档


/**
 * 分页查询
 * @param {Object} data
 */
export function getVisaConfimlList(data) {
  return request({
    url: `${faceApiUrl}/commercialVisaConfirmationFiling/getPageCommercialVisaConfirmationFiling`,
    method: 'post',
    data: data
  })
}

/**
 * 列表汇总信息
 * @param {Object} data
 */

export function getTopTotal(data) {
    return request({
      url: `${faceApiUrl}/commercialVisaConfirmationFiling/getTopTotal`,
      method: 'post',
      data: data
    })
  }

/**
 * 列表删除
 * @param {Object} data
 */
export function delVisaConfimlList(data) {
    return request({
    url: `${faceApiUrl}/commercialVisaConfirmationFiling/deleteByPrimaryKey/${data.id}`,
      method: 'get',
    })
  }

  /**
 * 总包确认归档撤销
 * @param data
 */
export function visaConfirmCancelProcess(data) {
  return request({
    url: `${faceApiUrl}/commercialVisaConfirmationFiling/cancelProcess/${data.id}`,  
    method: 'get',
  })
  }

    /**
 * 总包确认归档作废
 * @param data
 */
export function visaConfirmRevoke(data) {
  return request({
    url: `${faceApiUrl}/commercialVisaConfirmationFiling/Revoke/${data.id}`,  
    method: 'get',
  })
  }

      /**
 * 总包确认归档详情
 * @param data
 */
export function getCommercialVisaConfirmationFilingById(data) {
  return request({
    url: `${faceApiUrl}/commercialVisaConfirmationFiling/getCommercialVisaConfirmationFilingById`,  
    method: 'get',
    params: data
  })
  }

      /**
 * 获取签证名称数据
 * @param data
 */
export function getDropDownChoice(data) {
  return request({
    url: `${faceApiUrl}/commercialVisaConfirmationFiling/getDropDownChoice/${data.projectId}/${data.id}`,  
    method: 'get',
  })
  }


        /**
 * 总包确认归档新增
 * @param data
 */

  export function addlVisaConfimlData(data) {
    return request({
      url: `${faceApiUrl}/commercialVisaConfirmationFiling/insertSelective`,
      method: 'post',
      data: data
    })
  }

         /**
 * 总包确认归档编辑
 * @param data
 */

export function editVisaConfimlData(data) {
  return request({
    url: `${faceApiUrl}/commercialVisaConfirmationFiling/updateByPrimaryKeySelective`,
    method: 'post',
    data: data
  })
}


